schema json in oython

37

import json

def validateJSON(jsonData):
    try:
        json.loads(jsonData)
    except ValueError as err:
        return False
    return True

Comments

Submit
0 Comments